package cn.ren.hai.base.entity;

import cn.ren.hai.core.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单
 * </p>
 *
 * @author wangdao
 * @since 2021-12-29
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("rh_menu")
@ApiModel(value = "RhMenu对象", description = "菜单")
public class RhMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父级菜单id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "菜单路径")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "全路径")
    @TableField("full_path")
    private String fullPath;

    @ApiModelProperty(value = "显示名称")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "视图id")
    @TableField("view_id")
    private Long viewId;

    @ApiModelProperty(value = "实体id")
    @TableField("entity_id")
    private Long entityId;


}
